<template>
  <view class="wechat tnxuanfu" @click="tagClick">
    <view class="bg0 pa">
      <view class="bg1">
<!--        <view class="button-shop shadow">-->
<!--          <tn-icon :name="iconName" :size="fontSize" color="#fff"/>-->
<!--        </view>-->
        <image src="/static/nono.png" class="button-shop shadow"></image>
      </view>
    </view>
    <view class="hx-box pa">
      <view class="pr">
        <view class="hx-k1 pa0">
          <view class="span"></view>
        </view>
        <view class="hx-k2 pa0">
          <view class="span"></view>
        </view>
        <view class="hx-k3 pa0">
          <view class="span"></view>
        </view>
        <view class="hx-k4 pa0">
          <view class="span"></view>
        </view>
        <view class="hx-k5 pa0">
          <view class="span"></view>
        </view>
        <view class="hx-k6 pa0">
          <view class="span"></view>
        </view>
      </view>
    </view>
  </view>
</template>

<script setup>
  const emits = defineEmits(['tagClick'])

  const props = defineProps({
    iconName: String,
    fontSize: String
  })

  const tagClick = () => {
    emits('tagClick')
  }
</script>

<style scoped lang="scss">
  /* 悬浮 */
  .tnxuanfu{
    animation: suspension 3s ease-in-out infinite;
  }

  @keyframes suspension {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-0.8rem);
    }
  }
  /* 悬浮按钮 */
  .button-shop {
    width: 90rpx;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 5rpx;
    top: 5rpx;
    z-index: 1001;
    border-radius: 100px;
    opacity: 0.9;
  }


  /* 按钮 */
  .wechat {
    bottom: 380rpx;
    right: 75rpx;
    position: fixed;
    z-index: 9999;
  }


  .pa,
  .pa0 {
    position: absolute
  }

  .pa0 {
    left: 0;
    top: 0
  }


  .bg0 {
    width: 100rpx;
    height: 100rpx;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .bg1 {
    width: 100%;
    height: 100%;
  }

  .hx-box {
    top: 50%;
    left: 50%;
    width: 100rpx;
    height: 100rpx;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateY(75deg) rotateZ(10deg);
  }

  .hx-box .pr {
    width: 100rpx;
    height: 100rpx;
    transform-style: preserve-3d;
    animation: hxz 20s linear infinite;
  }

  @keyframes hxz {
    0% {
      transform: rotateX(0deg);
    }

    100% {
      transform: rotateX(-360deg);
    }
  }



  .hx-box .pr .pa0 {
    width: 100rpx;
    height: 100rpx;
    /* border: 4px solid #5ec0ff; */
    border-radius: 1000px;
  }

  .hx-box .pr .pa0 .span {
    display: block;
    width: 100%;
    height: 100%;
    background: url(https://resource.tuniaokj.com/images/cool_bg_image/arc4.png) no-repeat center center;
    background-size: 100% 100%;
    animation: hx 4s linear infinite;
  }

  @keyframes hx {
    to {
      transform: rotate(360deg);
    }
  }

  .hx-k1 {
    transform: rotateX(-60deg) rotateZ(-60deg)
  }

  .hx-k2 {
    transform: rotateX(-30deg) rotateZ(-30deg)
  }

  .hx-k3 {
    transform: rotateX(0deg) rotateZ(0deg)
  }

  .hx-k4 {
    transform: rotateX(30deg) rotateZ(30deg)
  }

  .hx-k5 {
    transform: rotateX(60deg) rotateZ(60deg)
  }

  .hx-k6 {
    transform: rotateX(90deg) rotateZ(90deg)
  }
</style>
